Get Annotation

Get annotation by id

Request
path Parameters
annotationId
required
string

annotation id

Responses
200

Ok

get/annotations/{annotationId}
Request samples

annotation = item.annotations.get(annotation_id='annotation_id')

# 
# Get a single annotation.
# 
# **Prerequisites**: You must have an item that has been annotated. You must have the role of an *owner* or
# *developer* or be assigned a task that includes that item as an *annotation manager* or *annotator*.
# 
# :param str annotation_id: The id of the annotation
# :return: Annotation object or None
# :return: Annotation object or None
# :rtype: dtlpy.entities.annotation.Annotation
# 
# 
Response samples
application/json
{
  • "id": "string",
  • "url": "string",
  • "type": "class",
  • "label": "string",
  • "attributes": [
    ],
  • "coordinates": {
    },
  • "metadata": {
    },
  • "creator": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "updatedBy": "string",
  • "itemId": "string",
  • "item": "string",
  • "datasetId": "string",
  • "dataset": "string",
  • "hash": "string",
  • "labelSuggestions": {
    },
  • "source": "ui",
  • "description": "string",
  • "srcAnnotation": "string"
}